/**
 * @(#)WeiboUserServiceImpl.java 2017年2月21日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.service.impl;

import org.jsbd.boss.domian.channel.MiguUser;
import org.jsbd.boss.domian.channel.ThirdUserQueryVo;
import org.jsbd.boss.enums.LoginTypeEnum;
import org.jsbd.boss.enums.MiguTableEnum;
import org.jsbd.boss.util.CacheKey;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 自有联通咪咕账号
 *
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service("selfUnicomMiguUserService")
public class SelfUnicomMiguUserServiceImpl extends ThirdLoginAdapterHandler<MiguUser> {


    @Override
    public boolean init() {
        loginIndexKey = CacheKey.SELF_UNICOM_MIGU_USR_APK;
        loginType = LoginTypeEnum.SELF_UNICOM_MIGU;
        queueKey = CacheKey.SELF_UNICOM_MIGU_USER_QUEUE;
        return true;
    }

    @Override
    public List<MiguUser> selectUserList(ThirdUserQueryVo queryVo) {
        queryVo.setTableName(MiguTableEnum.SELF_UNICOM_MIGU.getCode());
        return selectMiguUserList(queryVo);
    }

}
